package com.example.uCenter.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhl
 * @since 2022-08-29 08:38:53
 */
@Getter
@Setter
@TableName("login_records")
@ApiModel(value = "LoginRecords对象", description = "")
public class LoginRecords {

    @ApiModelProperty("登录id")
    @TableId(value = "login_id", type = IdType.AUTO)
    private Integer loginId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("登录类型（0为账号，1为手机，2为微信）")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("登录ip")
    @TableField("login_ip")
    private String loginIp;

    @ApiModelProperty("登录来源")
    @TableField("login_from")
    private String loginFrom;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;



}
